 
    var swiper = new Swiper(".mySwiper", {
      slidesPerView: 1,
      spaceBetween: 30,
      loop: true,
      pagination: {
        el: ".swiper-pagination",
        clickable: true,
      },
      navigation: {
        nextEl: ".swiper-button-next",
        prevEl: ".swiper-button-prev",
      },
      effect : 'fade',
        fadeEffect: {
        crossFade: true,
  },
  autoplay: {
    delay: 5000,//1秒切换一次
  },
    });